"use strict"

/**
 * 吉林省政府采购网爬虫
 *  
 */

var Base = require("./base");
var jl_spider = new Base();
jl_spider.name = "吉林省政府采购网";
jl_spider.page = 3;

jl_spider.getPageUrl = function(pg) {
    return "http://www.jlszfcg.gov.cn/jilin/zbxxController.form?bidWay=GKZB&declarationType=ZHAOBGG&declarationType=GSGG&pageNo=" + pg;
};

jl_spider.getItems = function($) {
    var items = [];
    $(".con08_a a").each(function(index, ele) {
        var e = $(ele);
        var item = {};
        item.title = e.text();
        item.url = "http://www.jlszfcg.gov.cn" + e.attr("href");
        item.source = jl_spider.name;
        items.push(item);
    });
    return items;
};

exports = module.exports = jl_spider;
